<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>未参考列表</title>
<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
	<div id="frameWrapper" class="frameWrapper">
	 <div class="titlebar">
		 <p>当前位置：考试管理<span>/</span>未参考列表</p>
	 </div>
	<!--检索-->
	<div class="searchbar">
		<form method="post" action="ExamServlet?command=notExam">
			<div id="input">
				<div class="inputwraper">
					<span>班级：</span>
					<input type="text" name="gradeName" value="${gradeName }" />
				</div>
				<div id="sub-btn">
					<input type="submit" value="搜素">
				</div>
				<div class="clear"></div>
			</div>
		</form>
	</div>   
	<div id="table-wrap">
		<table border="1"><!--检索-->
			<thead>
				<tr>
					<th>学号</th>
					<th>姓名</th>
					<th>科目</th>
					<th>班级</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${studentPage.list }" var="student">
				  <tr>   
						<td>${student.studentnum }</td >
						<td>${student.studentname }</td>
						<td>${student.subjectname }</td>
						<td>${student.gradename }</td>
				  </tr>
				</c:forEach>
			</tbody>
			<!--分页按钮 end-->
		</table>
		<div id="paging">
			<a class="btn btn-getionfo" href="ExamServlet?command=notExam&currentPage=1&gradeName=${gradeName }">首页</a>
			<a class="btn btn-getionfo" href="ExamServlet?command=notExam&currentPage=${studentPage.currentPage-1<1?1:studentPage.currentPage-1 }&gradeName=${gradeName }">上一页</a>
			&nbsp;&nbsp;&nbsp;&nbsp;
			共<span>${studentPage.pageTotal }</span>页
			&nbsp;&nbsp;&nbsp;&nbsp;
			当前第<span>${studentPage.currentPage }</span>页
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a class="btn btn-getionfo" href="ExamServlet?command=notExam&currentPage=${studentPage.currentPage+1<studentPage.currentPage+1?studentPage.currentPage+1:studentPage.pageTotal }&gradeName=${gradeName }">下一页</a>
			<a class="btn btn-getionfo" href="ExamServlet?command=notExam&currentPage=${studentPage.pageTotal }&gradeName=${gradeName }">末页</a>
		</div>
	</div>
</div>
</body>
</html>